package com.zjy.service.impl;

import com.zjy.bean.User;
import com.zjy.dao.UserMapper;
import com.zjy.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/2/27.
 */

@Service
public class LoginServiceImpl implements LoginService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserByNameAndPass(User user) {
        User user1 = null;
        user1 = userMapper.getUserByNameAndPass(user);
        return user1;
    }
}
